#include "mainwindow.h"
#include "ui_mainwindow.h"



MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    this->setWindowFlags(Qt::FramelessWindowHint);
    this->setGeometry(0,0,800,600);

    toolBarView = new ToolBarView(this);
    statusBarView = new StatusBarView(this);
    menuWin = new MenuWin(this);
    contentWidget = new QStackedWidget(this);

    toolBarView->setGeometry(0,0,800,60);
    contentWidget->setGeometry(0,60,800,495);
    menuWin->setGeometry(0,554,50,45);
    statusBarView->setGeometry(50,554,750,45);

    MainController::getInstance()->setContentWidget(contentWidget);
}

MainWindow::~MainWindow()
{
    delete ui;
}


